package com.yl.navigation.viewmodel

import com.yl.common.base.BaseViewModel
import com.yl.common.network.RespStateData
import com.yl.navigation.bean.TreeBean
import com.yl.navigation.repo.TreeRepo

/**
 * Created by stew on 8/5/22.
 */
class TreeViewModel(private var repo: TreeRepo) : BaseViewModel() {
    var treeBeanList = RespStateData<List<TreeBean>>()
    fun getTree() {
        launch { repo.getTree(treeBeanList) }
    }
}